const { getAboutUrl, updateAboutUrl } = require("../Dao/aboutDaos");
const { FormatJson } = require("../utils/tool");

//获取关于URL
module.exports.getAboutUrlServices = async function () {
    const data = await getAboutUrl();
    return FormatJson(0, "", data.url);
}

// 修改关于页面URL
module.exports.updateAboutUrlServices = async function (aboutInfo) {
    console.log(aboutInfo);
    await updateAboutUrl(aboutInfo);
    return FormatJson(0, "", aboutInfo.url)
}